5f645f
@@ -179,6 +179,7 @@
public Object terminate(AggregationBuffer agg) throws HiveException {
 
       for (int i = 0; i < ss.numFollowing; i++) {
         ss.results.add(getNextResult(ss));
+        ss.numRows++;
       }
       return o;
     }
